Returns an array of all property names from a window or control.
Names are returned as strings that can be passed to the Property statement to retrieve the value of each property. This statement can help you verify control properties when debugging scripts.
Note: To return property names for a JSONObject, use the GetPropertyNames - JSONObject statement.
Syntax
GetPropertyNames()
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Return value
| Value | Description |
|---|---|
| Value | Array of all property names from the window or control. |
Example
Try
Window("Report a Bug").EditBox("editboxPassword").SetText("Secret")
Fail("editboxPassword error check")
Catch
' Debug code to check control properties
PrintLn("List of editboxPassword properties and values:")
props = Window("Report a Bug").EditBox("editboxPassword").GetPropertyNames()
For each prop in props
PrintLn("Property: " + prop + " Value: " + Window("Report a Bug").EditBox("editboxPassword").Property(prop))
Next
End Try